package vip.zhy.faststart.demo.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.zhy.faststart.framework.domain.Response;
import vip.zhy.faststart.framework.jwt.Jwt;

@RequestMapping("/demo")
@RestController
public class DemoController {

    @PostMapping("/hello")
    public Response<Object> hello() {
        return Response.ok((Object) String.format("hello : %s", Jwt.USER_ID.get()));
    }

}
